<?xml version="1.0" encoding="utf-8" ?>
<TestCase testName="Test_01_ApplicationConductor">

	<TestSetup>

		<TestStep assemblyPath="BizUnit.Extensions.dll" typeName="BizUnit.Extensions.ContextPopulateStep">
			<ContextLoad contextKey="connectionString" keyValue="Integrated Security=SSPI;database=BizTalkMgmtDb;server=(local)" dataType="String" />
		</TestStep>

		<!-- Ensure application is stopped pre-test-->
		<TestStep assemblyPath="BizUnit.Extensions.BizTalk.dll" typeName="BizUnit.Extensions.BizTalk.ApplicationConductorStep" failOnError="true">
			<DelayForCompletion>5</DelayForCompletion> <!-- Optional, seconds to delay for this step to complete -->
    		<ApplicationName>CBRApplication</ApplicationName>
    		<ConnectionString takeFromCtx="connectionString"></ConnectionString>
			<Action>Stop</Action>
		 </TestStep>
	</TestSetup>
   
	<TestExecution>
		 <TestStep assemblyPath="BizUnit.Extensions.BizTalk.dll" typeName="BizUnit.Extensions.BizTalk.ApplicationConductorStep">
			<DelayForCompletion>5</DelayForCompletion>  Optional, seconds to delay for this step to complete 
    		<ApplicationName>CBRApplication</ApplicationName>
    		<ConnectionString takeFromCtx="connectionString"></ConnectionString>
			<Action>Start</Action>
		 </TestStep>
    </TestExecution>
    
    <TestCleanup>
		<!-- Ensure application is stopped after test-->
		<TestStep assemblyPath="BizUnit.Extensions.BizTalk.dll" typeName="BizUnit.Extensions.BizTalk.ApplicationConductorStep">
			<DelayForCompletion>5</DelayForCompletion> 
    		<ApplicationName>CBRApplication</ApplicationName>
    		<ConnectionString takeFromCtx="connectionString"></ConnectionString>
			<Action>Stop</Action>
		 </TestStep>
    </TestCleanup>    

</TestCase> 

 
